#ifndef _HELPERS_H
#define _HELPERS_H

/* Papastefanos Serafeim */
/* Boh9htikes sunarthseis */

#include "client.h"
#include "custom.h"
#include <stdarg.h>

/************************* 
 Diafores voh9htikes sunarthseis
 *************************/

char *datetoasci(DateTime *d);
DateTime *ascitodate(char *);
DateTime *getCurrentTime();
void viewParameterValueStruct(ParameterValueStruct *pv);

ParameterValueList *newParameterValueList(unsigned int size);
void freeParameterValueList(ParameterValueList *);

EventList *newEventList(unsigned int size);
void freeEventList(EventList *);

StringList *newStringList(unsigned int size);
void freeStringList(StringList *);


char *getErrorByNum(int num);


#if defined(_NO_DEBUG) && defined(__GNUC__)
/* gcc's cpp has extensions; it allows for macros with a variable number of
   arguments. We use this extension here to preprocess pmesg away. */
#define PRINTD(format, args...) ((void)0)
#else
void PRINTD(char *format, ...);

#endif

#endif //_HELPERS_H
